*width = 0;
*height = 0;
cinfo.err = jpeg_std_error(&jerr);
+ cinfo.image_width = 0;
+ cinfo.image_height = 0;
jpeg_create_decompress(&cinfo);
if ((fi = fopen(filename, "rb")) == NULL) {
fprintf(stderr, "couldn't open %s\n", filename);
int jpeg_save_to_mem(unsigned char*data, int width, int height, int quality, unsigned char*dest, int destsize);
int jpeg_load(const char*filename, unsigned char**dest, int*width, int*height);
int jpeg_load_from_mem(unsigned char*_data, int size, unsigned char*dest, int width, int height);
+void jpeg_get_size(const char *fname, int *width, int *height);
#ifdef __cplusplus
}